package com.atguigu.gulimail.member.service;

import com.atguigu.gulimail.member.exception.PhoneExsitException;
import com.atguigu.gulimail.member.exception.UserNameExistException;
import com.atguigu.gulimail.member.vo.MemberLoginVo;
import com.atguigu.gulimail.member.vo.MemberRegisterVo;
import com.atguigu.gulimail.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.member.entity.MemberEntity;

import javax.jws.soap.SOAPBinding;
import java.util.Map;

/**
 * 会员
 *
 * @author zhangyuchuan
 * @email zhangyuchuan@gmail.com
 * @date 2021-06-26 23:56:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo registerVo);
    void checkPhoneUnique(String phone) throws PhoneExsitException;
    void checkUserNameUnique(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser vo) throws Exception;
}

